package com.jvyou.mybatis.spring.demo.service.impl;

import com.jvyou.mybatis.spring.demo.entity.User;
import com.jvyou.mybatis.spring.demo.service.UserService;
import com.jvyou.mybatis.spring.demo.utils.RandomDataUtil;
import org.springframework.stereotype.Service;

/**
 * @author 橘柚
 * @version 1.0-SNAPSHOT
 * @Date 2024/7/13 15:39
 * @Description 用户相关业务实现类
 */
@Service
public class UserServiceImpl implements UserService {

    @Override
    public User findById(Long id) {
        return RandomDataUtil.generateRandomUser();
    }
}
